Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rank to local random number seed. #662

Merged

Conversation

MFraters
Copy link
Member

When looking at #651, I realized that we are not using the mpi rank to seed in case of a local seed. This add the MPI Rank, so that different mpi thread will produce different deterministic random numbers per rank.

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (29e2468) 92.82% compared to head (b3345e7) 92.82%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #662   +/-   ##
=======================================
  Coverage   92.82%   92.82%           
=======================================
  Files         105      105           
  Lines        7176     7176           
=======================================
  Hits         6661     6661           
  Misses        515      515           
Files Coverage Δ
source/world_builder/world.cc 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 29e2468...b3345e7. Read the comment docs.

@tjhei tjhei added the ready to merge Pull request is ready to merge. May be waiting for tests to complete or other reviews. label Feb 21, 2024
Copy link

Benchmark Main Feature Difference (99.9% CI)
Slab interpolation simple none 1.022 ± 0.005 (s=454) 1.015 ± 0.004 (s=432) -0.8% .. -0.6%
Slab interpolation curved simple none 1.024 ± 0.004 (s=461) 1.017 ± 0.005 (s=423) -0.8% .. -0.6%
Spherical slab interpolation simple none 1.170 ± 0.007 (s=371) 1.166 ± 0.006 (s=402) -0.5% .. -0.2%
Slab interpolation simple curved CMS 1.063 ± 0.005 (s=433) 1.064 ± 0.004 (s=416) +0.1% .. +0.2%
Spherical slab interpolation simple CMS 1.551 ± 0.008 (s=300) 1.549 ± 0.009 (s=283) -0.3% .. +0.0%
Spherical fault interpolation simple none 1.173 ± 0.008 (s=410) 1.170 ± 0.007 (s=361) -0.4% .. -0.1%
Cartesian min max surface 2.300 ± 0.022 (s=191) 2.298 ± 0.023 (s=203) -0.4% .. +0.2%
Spherical min max surface 7.225 ± 0.032 (s=54) 7.217 ± 0.032 (s=73) -0.4% .. +0.2%

@MFraters MFraters merged commit b8649bb into GeodynamicWorldBuilder:main Feb 21, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull request is ready to merge. May be waiting for tests to complete or other reviews.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants